import pandas as pd
import plotly.express as px

# 创建一个简单的 DataFrame
data = {
    'Year': [2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019],
    'Sales': [200, 240, 310, 370, 410, 450, 510, 620, 700, 780]
}
df = pd.DataFrame(data)

# 使用 Plotly Express 绘制折线图
fig = px.line(df, x='Year', y='Sales', title='年度销售额')

# 显示图表
fig.show()